package com.cysoft.starter.log.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

/**
 * @author 玖零
 * @version v0.0.1
 * @project cysoft-starter
 * @package com.cysoft.starter.log.core.properties
 * @date 2025-02-03 20:58
 * @desc 操作日志配置文件
 */
@Data
@ConfigurationProperties(prefix = "cysoft.log")
public class OperateLogProperties {

    /**
     * 是否启用日志
     */
    private Boolean enable;

    /**
     * 日志忽略配置嵌套属性
     */
    @NestedConfigurationProperty
    private LogIgnoreProperties ignore = new LogIgnoreProperties();

    /**
     * 日志输出配置嵌套属性
     */
    @NestedConfigurationProperty
    private LogOutputProperties output = new LogOutputProperties();

    /**
     * 日志操作者配置方式
     */
    @NestedConfigurationProperty
    private LogOperatorProperties operator = new LogOperatorProperties();

}
